#ifndef _BATTERY_H
#define _BATTERY_H

#include "adc.h"

#define	BAT_PULLUP_RES				200000
#define	BAT_PULLDOWN_RES			100000
#define	ADC_MAX								4096
#define	MCUWORK_VOL						3300
#define BAT_CHANNEL						ADC_CHANNEL_4


unsigned char BatDisplayLevel(adc_interface *pAdc);
unsigned short GetBatVoltage(adc_interface *pAdc);
unsigned char GetBatLevel(unsigned short value);

#endif	//_BATTERY_H
